package com.lyf.design.practice.theory.behavior.chain;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class BossHandler extends Handler{


    public BossHandler() {
        super();
    }

    public BossHandler(String name, Handler nextHandler) {
        super(name, nextHandler);
    }


    @Override
    void handle(Integer money) {
        if(money>1000)
            System.out.println(name+"(boss) cant bear");
        else
            System.out.println(name+"(boss) has handled");
            //nextHandler.handle(money);
    }
}
